package com.athuahua.spzx.controller.order;

import com.athuahua.spzx.dto.order.OrderStatisticsDto;
import com.athuahua.spzx.vo.order.OrderStatisticsVo;
import com.athuahua.spzx.service.OrderInfoService;
import com.athuahua.spzx.utils.Result;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: huahua
 * @Date: 2024/8/6 0006
 * @Time: 15:17
 * @Description:
 */
@RestController
@RequestMapping("admin/order/orderInfo")
@Tag(name = "订单数据统计接口")
@Slf4j
public class OrderInfoController {
    @Resource
    private OrderInfoService orderInfoService;

    @GetMapping("getOrderStatisticsData")
    public Result getOrderStatisticsData(OrderStatisticsDto orderStatisticsDto) {
        log.info("getOrderStatisticsData: {}", orderStatisticsDto);

        OrderStatisticsVo orderVo = orderInfoService.getOrderStatisticsData(orderStatisticsDto);



        return Result.success(orderVo);
    }




}
